package top.glkj.hms.controller.order;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.hibernate.criterion.Order;
import org.springframework.web.bind.annotation.*;
import top.glkj.hms.service.OrderService;
import top.glkj.hms.utils.Result;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2021/1/2 8:13
 */
@RestController
@RequestMapping("/order")
@Api(tags = "订单")
public class OrderController {
    private final OrderService orderService;

    public OrderController(OrderService orderService) {
        this.orderService = orderService;
    }

    @GetMapping("/user")
    @ApiOperation("根据登陆用户获取订单信息")
    public Result getOrderByUser(){
        //TODO
        return  null;
    };
    @PostMapping("/user")
    @ApiOperation("根据登陆用户添加订单信息")
    public Result addOrderByUser(Order order){
        //TODO
        return  null;
    };
    @PutMapping("/user")
    @ApiOperation("根据登陆用户添加订单信息")
    public Result updateOrderByUser(Order order){
        //TODO
        return  null;
    };
    @DeleteMapping ("/user")
    @ApiOperation("根据登陆用户添加订单信息")
    public Result deleteOrderByUser(Long order){
        //TODO
        return  null;
    };
}
